﻿namespace PumpStationClient
{
    public class Pump
    {
        public delegate void PumpEvent(Pump pump);

        public event PumpEvent StatusChanged;

        private bool _running;

        public bool Running
        {
            get { return _running; }
            set
            {
                if (_running != value)
                {
                    _running = value;
                    if (StatusChanged != null)
                        StatusChanged(this);
                }
            }
        }

        public double Capacity { get; set; }

        public Pump(double capacity)
        {
            Capacity = capacity;
        }
    }
}